state and prove gauss theorem